Error processing SSI file
LEADTOOLS PDF (Leadtools.Pdf assembly)

Show in webframe

MergeWith(PDFFile[],String) Method






An array of PDFFile objects that contain the names and optional password of the source files to merge with this PDFFile. Must not be null and must contain at least one item and a maximum of 100 items.
Name of the destination PDF file to be created. If the value of this parameter is null then the filename set in FileName will be updated.
Merges this PDF file with one or more PDF existing files with optional passwords for each file.
Syntax
public void MergeWith( 
   PDFFile[] sourceFiles,
   string destinationFileName
)
'Declaration
 
Public Overloads Sub MergeWith( _
   ByVal sourceFiles() As PDFFile, _
   ByVal destinationFileName As String _
) 
'Usage
 
Dim instance As PDFFile
Dim sourceFiles() As PDFFile
Dim destinationFileName As String
 
instance.MergeWith(sourceFiles, destinationFileName)

Parameters

sourceFiles
An array of PDFFile objects that contain the names and optional password of the source files to merge with this PDFFile. Must not be null and must contain at least one item and a maximum of 100 items.
destinationFileName
Name of the destination PDF file to be created. If the value of this parameter is null then the filename set in FileName will be updated.
Remarks

This method will merge two or more existing PDF files to form a new file containing all the pages from the pre-existing PDF files. The new file will be constructed as follows:

All the PDF files must pre-exist on disk and must be valid. The sourceFiles parameter must not contain any null items.

To use this method, associate this PDFFile object with a valid PDF file and optional password. You can achieve this by either using the PDFFile(string fileName) or PDFFile(string fileName, string password) constructors or set the filename and optional password directly into the FileName and Password properties. You do not need to call Load before using this method.

This method will use the following properties of this PDFFile object:

If one or more of the files to merge with are encrypted with a password, then set the required password in its PDFFile item in the sourceFiles array. If none of the files are encrypted, then you can use the MergeWith(string[] sourceFileNames, string destinationFileName) version of this method that allow you to pass a list of System.String's for the filenames instead.

Example

For an example, refer to MergeWith.

Requirements

Target Platforms

See Also

Reference

PDFFile Class
PDFFile Members
Overload List

Error processing SSI file
   Leadtools.Pdf requires a PDF Pro, Pro Suite, Document, or Medical license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features